﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Modules/AdminFrame.Master"
    AutoEventWireup="true" CodeBehind="SystemUser.aspx.cs" Inherits="Sasc.PV.Web.Admin.SystemManage.SystemUser" %>

<%@ Register Assembly="Sasc.PV.Web" Namespace="Sasc.PV.Web" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
                    &nbsp;<img src="<%:ResolveUrl("~/images/BanKuaiJianTou.gif") %>" />
                    <a class="hei" href="~/MyDesk">桌面</a>&nbsp;>>&nbsp;系统管理&nbsp;>>&nbsp;用户信息管理
                </td>
                <td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
                    部门：<asp:TextBox ID="TextBox2" runat="server" CssClass="lookuptarget" Height="20px"
                        Width="60px"></asp:TextBox>
                    <cc1:LookupHyperLink ID="UsersTextBoxLookupHyperLink" runat="server" DialogHeight="400"
                        DialogWidth="350" DialogURL="~/Admin/SelectBuMen" MergeValue="false" LookupTarget=".lookuptarget"></cc1:LookupHyperLink>
                    用户名：<asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="60px"></asp:TextBox>
                    <asp:ImageButton ID="SearchImageButton" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/Button/BtnSerch.jpg"
                        OnClick="SearchImageButton_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="AddImageButton" runat="server" ImageUrl="~/images/Button/BtnAdd.jpg"
                        ImageAlign="AbsMiddle" OnClick="AddImageButton_Click" />
                    &nbsp;
                    <asp:ImageButton ID="ModifyImageButton" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/Button/BtnModify.jpg"
                        OnClick="ModifyImageButton_Click" CssClass="listview_modifybutton" />
                    &nbsp;
                    <asp:ImageButton ID="DeleteImageButton" runat="server" CssClass="listview_deletebutton"
                        ImageUrl="~/images/Button/BtnDel.jpg" ImageAlign="AbsMiddle" OnClick="DeleteImageButton_Click" />
                    &nbsp;
                    <asp:ImageButton ID="ReportImageButton" runat="server" ImageUrl="~/images/Button/BtnReport.jpg"
                        ImageAlign="AbsMiddle" OnClick="ReportImageButton_Click" />
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/Button/JianGe.jpg"
                        ImageAlign="AbsMiddle" />
                    <asp:ImageButton ID="GoBackImageButton" runat="server" ImageUrl="~/images/Button/BtnExit.jpg"
                        ImageAlign="AbsMiddle" CssClass="gobackbutton" />
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 100%">
        <tr>
            <td>
                <asp:GridView ID="GVData" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                    BorderStyle="Groove" BorderWidth="1px" OnRowDataBound="GVData_RowDataBound" PageSize="15"
                    CssClass="mainlistview" Width="100%">
                    <PagerSettings Mode="NumericFirstLast" Visible="False" />
                    <PagerStyle BackColor="LightSteelBlue" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#DEDEDE" Font-Size="12px" ForeColor="Black" Height="20px" />
                    <AlternatingRowStyle BackColor="WhiteSmoke" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label ID="LabVisible" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ID")%>'
                                    Visible="False"></asp:Label>
                                <asp:CheckBox ID="CheckSelect" runat="server" class="selectrow_checkbox" />
                            </ItemTemplate>
                            <HeaderStyle Width="20px" />
                            <HeaderTemplate>
                                <input id="CheckBoxAll" type="checkbox" class="listview_checkall" />
                            </HeaderTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户名">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/node_user.gif"
                                    ImageAlign="AbsMiddle" />
                                <asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" NavigateUrl='<%# "SystemUserView.aspx?ID="+ DataBinder.Eval(Container.DataItem, "ID")%>'><%# DataBinder.Eval(Container.DataItem, "UserName")%></asp:HyperLink>
                                <asp:HyperLink ID="HyperLink3" runat="server" Font-Underline="True" ForeColor="Blue"
                                    NavigateUrl='<%# "SystemUserSetDep.aspx?UserName="+ DataBinder.Eval(Container.DataItem, "UserName") %>'>[设置下属]</asp:HyperLink>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="TrueName" HeaderText="姓名"></asp:BoundField>
                        <asp:BoundField DataField="Serils" HeaderText="员工编号"></asp:BoundField>
                        <asp:BoundField DataField="Department" HeaderText="所属部门"></asp:BoundField>
                        <asp:BoundField DataField="JiaoSe" HeaderText="所属角色"></asp:BoundField>
                        <asp:BoundField DataField="IfLogin" HeaderText="登陆系统"></asp:BoundField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center" Height="25px" />
                    <EmptyDataTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td align="center" style="border-right: black 1px; border-top: black 1px; border-left: black 1px;
                                    border-bottom: black 1px; background-color: whitesmoke;">
                                    该列表中暂时无数据！
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="border-top: #000000 1px solid; border-bottom: #000000 1px solid">
                <asp:ImageButton ID="BtnFirst" runat="server" CommandName="First" ImageUrl="~/images/Button/First.jpg"
                    OnClick="PagerButtonClick" />
                <asp:ImageButton ID="BtnPre" runat="server" CommandName="Pre" ImageUrl="~/images/Button/Pre.jpg"
                    OnClick="PagerButtonClick" />
                <asp:ImageButton ID="BtnNext" runat="server" CommandName="Next" ImageUrl="~/images/Button/Next.jpg"
                    OnClick="PagerButtonClick" />
                <asp:ImageButton ID="BtnLast" runat="server" CommandName="Last" ImageUrl="~/images/Button/Last.jpg"
                    OnClick="PagerButtonClick" />
                &nbsp;第<asp:Label ID="LabCurrentPage" runat="server" Text="Label"></asp:Label>页&nbsp;
                共<asp:Label ID="LabPageSum" runat="server" Text="Label"></asp:Label>页&nbsp;
                <asp:TextBox ID="TxtPageSize" runat="server" CssClass="TextBoxCssUnder2" Height="20px"
                    Width="35px">15</asp:TextBox>
                行每页 &nbsp; 转到第<asp:TextBox ID="GoPage" runat="server" CssClass="TextBoxCssUnder2"
                    Height="20px" Width="33px"></asp:TextBox>
                页&nbsp;
                <asp:ImageButton ID="ButtonGo" runat="server" CssClass="listview_gopagebutton" ImageUrl="~/images/Button/Jump.jpg"
                    OnClick="ButtonGo_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
